package com.tjl.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName commodity
 */
@TableName(value ="commodity")
@Data
public class Commodity implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer cid;

    /**
     * 
     */
    private String name;

    /**
     * 分类id
     */
    private Integer typeid;

    private Integer buynum;

    private Integer state;

    /**
     * 简介
     */
    private String introduces;

    private String imgurl;

    private String hot;


    @TableField(exist = false)
    private String typename;


    @TableField(exist = false)
    private String typeinfo;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 折扣
     */
    private BigDecimal discount;

    /**
     * 
     */
    private String updatetime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}